using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace Ordenaro
{
    class Program
    {
        static void Main(string[] args)
        {
            ArrayList lista = new ArrayList();
            lista.Add(new Persona(23,"1"));
            lista.Add(new Persona(22,"2"));
            lista.Add(new Persona(25, "3"));
            lista.Sort();
            foreach (Persona a in lista) {
                Console.WriteLine(a.Dni);
            }
        }
    }
}
